// 类组件，通过this.props获取路由信息; 函数组件，通过解构参数获取

//新建页与详情页共用一页，路由如下：
  {
    path: '/hmes/organization-modeling/area',
    components: [
      {
        path: '/hmes/organization-modeling/area/list',
        component: () => import('../routes/hmes/Area/AreaList'),
      },
      {
        path: '/hmes/organization-modeling/area/dist/:areaId',
        component: () => import('../routes/hmes/Area/AreaDetail'),
      },
    ]
  }

  // 1.显式传参，参数拼接地址栏，跳转新建或详情页
  const { history } = this.props;
  history.push('/hmes/organization-modeling/area/dist/create');  
  history.push(`/hmes/organization-modeling/area/dist/${record.data.areaId}`)

  // 获取参数，即为下面的id
  const { match: { params: { id } } } = this.props;

  // 2.显式传参，参数以查询字符串拼接地址栏，配合qs使用 '?pageType=xxx'
  history.push({
    pathname,
    search: querystring.stringify({ pageType }),
  });

  // 获取参数，即为下面的search
  const { location: { search } } = this.props;
  const { pageType } = querystring.parse(search.substring(1));

  // 3.隐式传参，参数不拼接地址栏，传对象时使用
  history.push({
    pathname: `${basePath}/list`,
    state: verifyObjectHasValue(locationState) ? { ...locationState } : {},
  });

  history.push(`${basePath}/list`,verifyObjectHasValue(locationState) ? { ...locationState } : {});

  // 获取参数，即为下面的state
  const { location: { state } } = this.props;